/*
 * Created on 2005-6-8
 *
 */
package com.yl.cap.analyst.user.dao;

import jaoso.framework.dao.BaseDAO;

import java.util.List;

import com.yl.cap.analyst.user.domain.Group;

/**
 * @author ZhangQi
 *
 */
public interface UserDAO extends BaseDAO
{
    public List getAllGroup();
    /**
     * get all viewer
     * @return
     */
    public List getAllUser();
    /**
     * if this group already exist
     * @return
     */
    public boolean isGroupExist(String name);
    /**
     * if this user already exist
     * @param name
     * @return
     */
    public boolean isUserExist(String name);
    
    public Group getGroupByName(String name);
    
    public boolean vertifyGroup(String groupId,String userId);
}
